//引入Vue和VueRouter
import Vue from "vue"
import VueRouter from "vue-router"

//引入路由表
import routes from "./routes"

//使用VueRouter
Vue.use(VueRouter)

//实例化路由器
const router = new VueRouter({
    mode: "history",
    routes: routes,
})

//暴露路由器
export default router